<?php

namespace App\Services\Goods;

use App\Models\GoodsSkuModel;
use App\Services\BaseServices;

class GoodsSkuServices extends BaseServices
{
    /**
     * @param  int  $goodsId
     * @return \App\Models\BaseModel[]|\Illuminate\Database\Eloquent\Builder[]|\Illuminate\Database\Eloquent\Collection
     */
    public function getGoodsSkuByGoodsId(int $goodsId)
    {
        return GoodsSkuModel::query()->where('goods_id', $goodsId)->get();
    }
}
